﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

namespace Cloak.Web.Mvp
{
	/// <summary>
	/// Base class for master pages which serve as views in an MVP context
	/// </summary>
	public abstract class ViewMasterPage : MasterPage
	{
		/// <summary>
		/// Handles the Load event of this control
		/// </summary>
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);

			EnsureChildControls();

			RaiseBubbleEvent(this, new PresentableEventArgs());
		}
	}
}